package com.llc.mall.rbac.interfaces.vo;

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

public record RouteVO(
		@Schema(description = "id")
		Long id,
		@Schema(description = "parentId")
		Long parentId,
		@Schema(description = "路径: 就像uri")
		String path,
		@Schema(description = "组件如：1.'Layout' 为布局，不会跳页面 2.'components-demo/tinymce' 跳转到该页面")
		String component,
		@Schema(description = "当设置 noRedirect 的时候该路由在面包屑导航中不可被点击")
		String redirect,
		@Schema(description = "一直显示根路由")
		Boolean alwaysShow,
		@Schema(description = "当设置 true 的时候该路由不会在侧边栏出现 如401，login等页面，或者如一些编辑页面/edit/1")
		Boolean hidden,
		@Schema(description = "设定路由的名字，一定要填写不然使用<keep-alive>时会出现各种问题")
		String name,
		@Schema(description = "排序")
		Integer seq,
		@Schema(description = "路由的源信息")
		RouteMetaVO meta
) implements Serializable {}
